<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>帐号管理</title>
<link href="/stylesheets/survey_public.css" rel="stylesheet" type="text/css" />
<style>
#header{ width:885px; float:left; height:120px; background:url(/images/user/report_list/header.jpg) no-repeat;}
#header ol li{ width:670px; height:92px; margin-top:25px; float:left;}

#header ul{ width:170px; height:84px; float:left; margin-top:10px;}
#header ul li{line-height:38px; font-size:14px; color:#FFFFFF; text-align:right;}
#header ul li a{ color:#FFFFFF; font-size:12px; padding-right:20px;}

#content_header{ width:870px;height:20px;margin:5px 0 5px 5px; float:left;border-bottom:1px solid #D7E2EA;}

#text{ width:90px; height:16px; border:1px solid #0074c6;}
#text2{ width:140px; height:16px; border:1px solid #0074c6;}

#content_1{ width:885px; float:left; padding-left:100px;}
.back{ width:102px; height:35px; float:right; padding-right:50px; margin-top:20px;}
.c_left{ width:170px; height:420px; float:left; background:url(/images/user/report_list/leftbg.jpg) no-repeat;margin-top:5px;}
.c_left01{ width:144px; height:100px; margin:16px 0 0 10px; display:inline; border-bottom:1px dashed #0074c6; float:left;}
.text-input{ width:140px; height:18px; border:1px solid #0074c6;}
.c_left02{ width:144px; height:100px; margin-top:12px; float:left; margin-left:12px; display:inline; overflow:hidden; }
.c_right{ width:700px; margin-top:5px;margin-left: 1px;}


#footer{ width:100%; height:200px; float:left; background:url(/images/user/report_list/footer.jpg) no-repeat; text-align:center; color:#295c72;}
#footer h1{ margin-top:100px;}
.create-submit {background-color:#368ED5; color:white; border:1px solid #A8C5CF; margin-top:20px;}

.form-item {margin-top:10px;}

</style>
  <script type="text/javascript" src="/javascripts/prototype.js"></script>
  
</head>
<body  onload="show_div(<%=params[:div] || 0%>);">
<div id="page">
	<div id="header">
		<ol>
		<li id="title-text">帐号管理</li>
		</ol>
		<ul>
        <li id="org-text"><%=current_user.name%></li>
		    <li><a href="/login/logout">安全退出</a></li>
		</ul>
	</div>
	   <div id="content_header" >
	     <a href="/user/info_manage/accounts"   
	     style="margin-left:20px;">
	      账户管理</a>
	     <a href="/user/info_manage/accounts?wh=main"
	        style="margin-left:10px;background-color: #378FD6; color:white; padding:5px 5px 4px 5px; overflow:hidden;">
	      机构信息</a>
	   </div>
	   <div id="content_1" >
             <!--
	   <div class="c_left">
	     <div class="c_left01">
	      <a href="#"  onclick="show_div(0);" 
	      style="amrgin:10px 0 0 0 ;">修改密码</a>
	      <br />
	      <a href="#"  onclick="show_div(1);" >机构信息</a>
	     </div>
	     <div class="c_left02"></div>
	   </div>
             -->
       <div id="info_div" style="margin-top:20px; margin-bottom:10px;">
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          基本信息
              <% form_for(:user, :url => { :action => "info_update" }) do |f| %>
               <div><p style="color: red"><%= flash[:notice] %></p></div>
              <div class="form-item">
                机构名：<br />
                <input type="text2"  class="text-input"  name="name" value="<%=current_user.name%>"/>
                </div>
               <div class="form-item">
                       Email：<br />
                <input type="text2" class="text-input"  name="email" value="<%=current_user.email%>"/>
               </div>
              <div class="form-item">
                电话：<br />
            <input type="text2" class="text-input" name="tel_phone" value="<%=current_user.tel_phone%>"/>
                </div>
                <div class="form-item">
                联系人：<br />
            <input type="text2" class="text-input" name="contact" value="<%=current_user.contact%>"/>
                </div>
            <div>
              <%= f.submit "修改", :class => "create-submit" %>
             </div>
         <% end %>
        </div>
             
	      <div id="chpa_div" style="padding-top:20px;border-top:1px solid #A8C5CF; width:300px;">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                修改密码(试用帐号不能修改密码)
              <form  action="/user/info_manage/pa_update" method="post">
               <%= tag(:input, :type => "hidden", :name => request_forgery_protection_token.to_s,
                    :value => form_authenticity_token) %>
                <div><p style="color: red"><%= flash[:error1] %></p></div>
                <div><p style="color: red"><%= flash[:error2] %></p></div>
              <div class="form-item">
              旧密码：<br />
              <input type="password" class="text-input"  name="oldpa" size="15" />
              </div>
              <div class="form-item">
              新密码：<br />
              <input type="password" class="text-input" name="newpa" size="15" />
              </div>
              <div class="form-item">
              确认密码：<br />
              <input type="password" class="text-input" name="connewpa" size="15" />
              </div>
              <div>
               <div class="form-item">
              <input type="button" class="create-submit" value="修改"/>
              </div>
              </div>
              </form>
        </div>
 	      <div class="back">
          <a href="/user/test/home"><img src="/images/back.png" width="88" height="27" /></a>
        </div>
	   </div>

</div>
  <div id="footer">
<h1>北京心嘉源咨询有限公司 CopyRight © www.iyaoi.cn 2009</h1>
</div>
</body>
</html>
